#ifndef __SMART_SECURITY_H__
#define __SMART_SECURITY_H__

#include <stdbool.h>
#include "common_enums.h" // 引入公共枚举定义

enum beep_command
{
    beep_state_on = 0x0201,
    beep_state_off,
};

void mq2_init(void);
void mq2_read_data(double *dat);

void beep_dev_init(void);
void beep_set_pwm(unsigned int duty);
void beep_set_state(bool state);

void alarm_light_init(void);
void alarm_light_set_gpio(bool state);

void body_induction_dev_init(void);
void body_induction_get_state(bool *dat);

void lcd_dev_init(void);
void lcd_load_ui(void);
void lcd_set_ppm(double ppm);
void lcd_set_body_induction(bool body_induction);
void lcd_set_beep_state(bool state);
void lcd_set_alarm_light_state(bool state);
void lcd_set_auto_state(bool state);

#endif
